package com.ddwl.schema.vo.gate;

import com.ddwl.schema.vo.base.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @author Fu Zhaohui
 * @version 1.0.0
 * @date 2019/6/24 15:43
 */
@ApiModel(description = "身份证识别")
@Setter
@Getter
public class VerifyORCResultVo extends BaseVo {

    @ApiModelProperty("结果code 0成功 21101 公安库系统维护中")
    private String error_code;

    @ApiModelProperty("结果")
    private String reason;

    @ApiModelProperty("识别信息")
    private Result result;

    @Data
    @ApiModel("识别信息")
    public static class Result {

        @ApiModelProperty(value = "true：匹配 false：不匹配")
        private Boolean isok;

        @ApiModelProperty(value = "身份证号")
        private String idcard;

        @ApiModelProperty(value = "名字")
        private String realname;

    }

}
